package com.dingding.manager.modules._example.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.dingding.manager.modules._example.dao.IPlayerDao;

@Component("UserService")
public class PlayerServiceImpl implements PlayerService {

//	@Autowired
	private IPlayerDao userDao;
	
	@Transactional(readOnly = false)
	@Override
	public List<Object> getAllUsers() {
		List<Object> allUsers = this.userDao.getAllUsers();
		System.out.println(allUsers.size());
		return allUsers;
	}

}
